<template>
<div class="topiclist">
    <h4>专题精选</h4>
    <ul>
        <li v-for="item in TopicListArr" :key="item.id">
            <img :src="item.item_pic_url" alt="">
            <p>{{item.title}} <i>&nbsp;{{item.price_info|formatMoney}}起</i></p>
            <span>{{item.subtitle|sliceTitle}}</span>
        </li>
    </ul>
</div>
</template>

<script>
export default {
name: 'TopicList',
data() {
return {

}
},
props:['TopicListArr'],
components: {

},
methods: {

},
created() {

},
}
</script>

<style lang='less' scoped>
.topiclist{
    font-size: 16px;
    h4{
        text-align: center;
        height: 50px;
        line-height: 50px;
        color: #000;
        font-size: 22px;
    }
    ul{
        display: flex;
        overflow: auto;
        li{
            width: 300px;
            height: 270px;
            margin: 6px 6px;
            img{
                display: block;
                width: 300px;
                height: 200px;
            }
            p{
                height: 30px;
                line-height: 30px;
                i{
                    color: rgb(155, 9, 9);
                }
            }
            span{
                display: block;
                height: 30px;
                line-height: 30px;
                font-size: 18px;
            }
        }
    }
}
</style>